﻿<%@ Page Title="Comment Manager" Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.Master" AutoEventWireup="true"
    CodeBehind="CommentManager.aspx.cs" Inherits="DesignLife.Admin.CommentManager" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="css/commentmanager.css" type="text/css" media="screen" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
            <div id="commentmanager">
                <table>
                    <tr>
                        <td colspan="3">
                            <div style="padding: 5px 0 5px 50px; margin: 10px 0 10px 0;">
                                <asp:Label ID="commentmanagermessage" runat="server" CssClass="text-message" />
                            </div>
                        </td>
                    </tr>
                    <tr id="trSubmit" runat="server">
                        <td style="width: 230px">
                            <asp:HiddenField ID="hifcommentmanagermessagecontent" runat="server" Value="" />
                            <span class="text-message">Message:</span><br />
                            <asp:TextBox ID="txtcommentmanager_messagecontent" runat="server" TextMode="MultiLine"></asp:TextBox>
                        </td>
                        <td style="width: 200px;">
                            <span class="text-message ">Author:</span><br />
                            <asp:TextBox ID="txtcommentmanager_messageauthor" runat="server" MaxLength="30" />
                        </td>
                        <td>
                            <span class="text-message ">Status:</span><br />
                            <asp:CheckBox ID="rdocommentmanagermessagestatus" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td id="tdSubmit" runat="server" colspan="2">
                            <div style="margin: 20px auto; height: 23px;">
                                <span style="width: 90px; height: 23px; float: left;">
                                    <asp:Button ID="commentmanagerAdd" runat="server" Text="Add" Style="height: 25px;
                                        width: 80px;" OnClick="commentmanagerAdd_Click" />
                                </span><span style="width: 90px; height: 23px; float: left;">
                                    <asp:Button ID="commentmanagerChange" runat="server" Text="Change" Style="height: 25px;
                                        width: 80px;" OnClick="commentmanagerChange_Click" />
                                </span><span style="width: 90px; height: 23px; float: left;">
                                    <asp:Button ID="commentmanagerCancel" runat="server" Text="Cancel" Style="height: 25px;
                                        width: 80px;" OnClick="commentmanagerCancel_Click" />
                                </span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <table id="commentmanager_Table" width="100%">
                                <tr>
                                    <th class="title" style="width: 3%">
                                        ID
                                    </th>
                                    <th class="title" style="width: 15%">
                                        Message
                                    </th>
                                    <th class="title" style="width: 10%">
                                        Author
                                    </th>
                                    <th class="title" style="width: 5%">
                                        <table id="tbTrueFalse" style="width: 100%; text-align: center">
                                            <tr>
                                                <td colspan="2">
                                                    Status
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    True<br />
                                                    <asp:CheckBox ID="commentmanager_Table_title_true" runat="server" AutoPostBack="True"
                                                        Checked="true" OnCheckedChanged="commentmanager_Table_title_true_CheckedChanged" />
                                                </td>
                                                <td>
                                                    False<br />
                                                    <asp:CheckBox ID="commentmanager_Table_title_false" runat="server" AutoPostBack="True"
                                                        OnCheckedChanged="commentmanager_Table_title_false_CheckedChanged" />
                                                </td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="title" style="width: 5%">
                                        Select
                                    </th>
                                </tr>
                                <asp:DataList ID="commentmanager_item" runat="server" Width="70%" RepeatLayout="Flow"
                                    RepeatDirection="Horizontal" OnItemCommand="commentmanager_item_ItemCommand">
                                    <HeaderTemplate>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td class="commentmanager_Table_ID" style="width: 3%">
                                                <asp:Label ID="lbcommentmanager_Table_ID" runat="server" Text='<%#Eval("CommentID") %>' />
                                            </td>
                                            <td class="right" id="a" style="width: 15%">
                                                <div style="width: 90%;">
                                                    <asp:Label ID="lbcommentmanager_Table_Message" runat="server" Text='<%#Eval("Message") %>' />
                                                </div>
                                            </td>
                                            <td id="a" style="width: 10%">
                                                <asp:Label ID="lbcommentmanager_Table_author" runat="server" Text='<%#Eval("Authors") %>' />
                                            </td>
                                            <td id="a" style="width: 5%">
                                                <asp:Label ID="lbcommentmanager_Table_status" runat="server" Text='<%#Eval("Status") %>' />
                                            </td>
                                            <td id="a" style="width: 5%">
                                                <asp:Button ID="btnSelect" runat="server" Text="Select" />
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </table>
                                    </FooterTemplate>
                                </asp:DataList>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="commentmanagerAdd" />
            <asp:AsyncPostBackTrigger ControlID="commentmanagerChange" />
            <asp:AsyncPostBackTrigger ControlID="commentmanagerCancel" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
